package com.casic.cloud.controller;

import com.casic.cloud.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: rare_earth_cloud
 * @description: 业务类访问接口
 * @author: Tan_sir
 * @create: 2021-05-06 09:34
 **/

@RestController
@RequestMapping("/resume")
public class ResumeController {


    @Value("${server.port}")
    private Integer port;

    @Autowired
    private ResumeService resumeService;
    //"/resume/openstate/1545132"
    @GetMapping("/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable Long userId) throws InterruptedException {
        //return resumeService.findDefaultResumeByUserId(userId).getIsOpenResume();
        //return port;
        //Thread.sleep(5000);
        //int i=10/0;
        return port;
    }

}

